<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'top.jsp' starting page</title>
    <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" /> 	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" language="javascript">
	$(document).ready(function () {
		//findUserInfo();
		$("#userEdit").click(function(){
			var UId = $("#user").val();
			//alert($('body', window.document).html());
			$('#tabFrame', window.parent.frames['mainFrame'].document).attr("src", "admin/user_editUser.action?user.UId="+UId);
		});
		/*
		$("#txlImg").trigger(function(){
				$('#tabFrame', window.parent.frames['mainFrame'].document).hide("slow");
				$('#rightFrame', window.parent.frames['mainFrame'].document).show("slow");
			},
			function(){
				$('#rightFrame', window.parent.frames['mainFrame'].document).hide("slow");
				$('#tabFrame', window.parent.frames['mainFrame'].document).show("slow");
			}		
		);*/
		$('#txlImg').toggle(
			function(){
				$(this).attr("src","img/txl_button.png");
				$('#tabFrame', window.parent.frames['mainFrame'].document).hide("slow");
				$('#rightFrame', window.parent.frames['mainFrame'].document).show("slow");
			},
			function(){
				$(this).attr("src","img/txl_button.png");
				$('#rightFrame', window.parent.frames['mainFrame'].document).hide("slow");
				$('#tabFrame', window.parent.frames['mainFrame'].document).show("slow");
			}
		);
/*		$("#txlImg").click(function(){
			//window.parent.location.replace("/ag/zhh/contactIndex.jsp");
			window.open("/ag/zhh/contactIndex.jsp");
		});*/
		$("#exitImg").click(function(){
			window.parent.location.replace("login.jsp");
		});
	});	
	
	
	function findUserInfo(){	
		var timestamp = Date.parse(new Date());
		$.get("admin/UserServ_findUserInfo.action?ts="+timestamp,null,findUserInfoRst);
	}
	
	function findUserInfoRst(data){
		if(data.ajaxRst=="success"){
			$('#adminSP').text(data.tbUser.UName);
		}
	}
</script>	
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #06527d;
	font-size: 12px; 
}
.img_button{
	padding-left: 30px;

}
-->
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/time.js"></script>
</head>
  
  <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
  <tr>
    <td height="9" style="line-height:9px; background-image:url(img/main_04.gif)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="97" height="9"><img src="img/main_01.gif" width="97" height="9" border="0"></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="47" background="img/main_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="38" height="47" valign="top"><img src="img/main_06.gif" width="38" height="47"/></td>
        <td width="59" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="29"><img src="img/main_07.gif" height="29" /></td>
          </tr>
          <tr>
            <td height="18" background="img/main_14.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
              <tr>
                <td  style="width:1px;">&nbsp;</td>
                <td ><span class="STYLE1" id="adminSP"></span></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="355" valign="top"><img src="img/main_08.gif" width="355" height="47" border="0" /></td>
        <td><table width="84" border="0" cellspacing="0" cellpadding="0" height="48">
          <tr >
<!-- 按钮 -->            <td height="23" valign="bottom" width="100%" style="white-space:nowrap;" >
			
				<span style="width:100%" >
				<%--<img id="txlImg" class="img_button" src="img/txl_button.png" width="50px" height="20px" />
				--%><img id="exitImg" class="img_button" src="img/exit_button.png" width="50px" height="20px" style="cursor:pointer;" />
				</span>
			</td>
          </tr>
        </table></td>
        <td width="200" valign="top" background="img/main_11.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="18" colspan="2"><img src="img/main_10.gif"/></td>
           </tr>
          <tr>
            <td width="20" height="12">&nbsp;</td>
            <td width="180" valign="bottom"><span id="dateTime" class="STYLE1"></span></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="5" style="line-height:5px; background-image:url(img/main_18.gif)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="180" background="img/main_16.gif"  style="line-height:5px;">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<input id="user" name="event.tbUserByUId.UId"  type="hidden" 
					 value="<s:property value="#session.user_session.tbUser.UId"/>"/>
<map name="Map" id="Map"><area id="userEdit" shape="rect" coords="210,2,304,20" href="javascript:;" /></map></body>
</html>

